import { createRouter,createWebHashHistory, type RouteRecordRaw } from "vue-router";
const routes:Array<RouteRecordRaw> = [
  
  {
    path: "/",
    name: "Home",
    component: () => import("../views/home/index.vue"),
  },
  {
    path: "/login",
    name: "Login",
    component: () => import("../views/login/index.vue"),
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});


// router.beforeEach((to, from, next) => {
//   // 检查某些条件，然后调用 next() 允许导航继续进行
//   next(); // 确保总是调用 next()，除非有特定的理由阻止导航
// });

export default router;
